﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_USED_AMOUNT_TEMP
// * CreateDate    : 2013-02-16 15:18:41
// * Creater       : CodeSmith
// * LastChangeDate: 2013-02-16 15:18:41
// * LastChanger   : 2013-02-16 15:18:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdUsedAmountTempTable : TableInfo
    {
        public const string C_TableName = "PROD_USED_AMOUNT_TEMP";

        public const string C_WORKING_ORDER_ID = "WORKING_ORDER_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_PARENT_WORKING_ORDER_ID = "PARENT_WORKING_ORDER_ID";
        public const string C_QTY = "QTY";

        public ProdUsedAmountTempTable()
        {
            _tableName = "PROD_USED_AMOUNT_TEMP";
        }

        protected static ProdUsedAmountTempTable _current;
        public static ProdUsedAmountTempTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdUsedAmountTempTable();

            _current.Add(C_WORKING_ORDER_ID, new ColumnInfo(C_WORKING_ORDER_ID, "WorkingOrderId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_PARENT_WORKING_ORDER_ID, new ColumnInfo(C_PARENT_WORKING_ORDER_ID, "ParentWorkingOrderId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));

        }

        public ColumnInfo WORKING_ORDER_ID
        {
            get { return this[C_WORKING_ORDER_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo PARENT_WORKING_ORDER_ID
        {
            get { return this[C_PARENT_WORKING_ORDER_ID]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }



    }
}

